package com.ruoyi.mdkt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author gwl
 * @since 2022-10-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Discuss extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 从属ID
     */
    private Long leaderId;

    /**
     * 1:课程 2:课时
     */
    private Integer type;

    private Long userId;

    /**
     * 上级评论
     */
    private Long parentId;

    /**
     * 评论详情
     */
    private String message;

    /**
     * 点赞数
     */
    private Integer likeNum;

    /**
     * url
     */
    private String url;

}
